package cn.hnwlgc.service.impl;

import cn.hnwlgc.mapper.TagMapper;
import cn.hnwlgc.pojo.Tag;
import cn.hnwlgc.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl implements TagService {

    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<Tag> list() {
        return tagMapper.list();
    }

    @Override
    public Tag getById(Integer id) {
        return tagMapper.getById(id);
    }
}
